package com.sservice.urp.dao;


import com.sservice.urp.entity.Permission;

import java.util.List;

public interface IPermissionDao {
    int deleteByPrimaryKey(Integer id);


    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);


    /**
     * 根据用户ID获取权限/资源
     *
     * @param userid
     * @return
     */
    List<Permission> getPermissionByUserID(int userid);

    /***
     * c查看看角色     * @param roleId
     * @return
     */
    List<Permission> getPermissionByRoleId(int roleId);
}